/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hamming;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JSeparator;
import javax.swing.JButton;

/**
 *
 * @author Darko
 */
public class VnesiMatricaView extends JPanel{

    public VnesiMatricaView(){
        VnesiMatricaPanela = new javax.swing.JPanel();
        imeMatrica = new javax.swing.JLabel();
        inputMatricaName = new javax.swing.JTextField();
        colsNbr = new javax.swing.JLabel();
        rowsNbr = new javax.swing.JLabel();
        resultLabel = new javax.swing.JLabel();
        inputColsNbr = new javax.swing.JTextField();
        inputRowsNbr = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jSeparator3 = new javax.swing.JSeparator();
        submitVnesiMatrica = new javax.swing.JButton();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(hamming.HammingApp.class).getContext().getResourceMap(HammingView.class);
        VnesiMatricaPanela.setBorder(javax.swing.BorderFactory.createEtchedBorder(resourceMap.getColor("VnesiMatricaPanela.border.highlightColor"), resourceMap.getColor("VnesiMatricaPanela.border.shadowColor"))); // NOI18N
        VnesiMatricaPanela.setName("VnesiMatricaPanela"); // NOI18N


        imeMatrica.setText(resourceMap.getString("imeMatrica.text")); // NOI18N
        imeMatrica.setName("imeMatrica"); // NOI18N

        inputMatricaName.setText(resourceMap.getString("inputMatricaName.text")); // NOI18N
        inputMatricaName.setName("inputMatricaName"); // NOI18N

        colsNbr.setText(resourceMap.getString("colsNbr.text")); // NOI18N
        colsNbr.setName("colsNbr"); // NOI18N

        rowsNbr.setText(resourceMap.getString("rowsNbr.text")); // NOI18N
        rowsNbr.setName("rowsNbr"); // NOI18N

        inputColsNbr.setText(resourceMap.getString("inputColsNbr.text")); // NOI18N
        inputColsNbr.setName("inputColsNbr"); // NOI18N

        inputRowsNbr.setText(resourceMap.getString("inputRowsNbr.text")); // NOI18N
        inputRowsNbr.setName("inputRowsNbr"); // NOI18N

        jSeparator1.setName("jSeparator1"); // NOI18N

        jSeparator3.setName("jSeparator3"); // NOI18N

        submitVnesiMatrica.setText(resourceMap.getString("submitVnesiMatrica.text")); // NOI18N
        submitVnesiMatrica.setName("submitVnesiMatrica"); // NOI18N
        submitVnesiMatrica.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                VnesiMatricaPanelaMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout VnesiMatricaPanelaLayout = new javax.swing.GroupLayout(VnesiMatricaPanela);
        VnesiMatricaPanela.setLayout(VnesiMatricaPanelaLayout);
        VnesiMatricaPanelaLayout.setHorizontalGroup(
                VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(VnesiMatricaPanelaLayout.createSequentialGroup().addContainerGap().addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VnesiMatricaPanelaLayout.createSequentialGroup().addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addGroup(VnesiMatricaPanelaLayout.createSequentialGroup().addComponent(imeMatrica).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(inputMatricaName, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)).addComponent(rowsNbr, javax.swing.GroupLayout.Alignment.LEADING).addGroup(javax.swing.GroupLayout.Alignment.LEADING, VnesiMatricaPanelaLayout.createSequentialGroup().addComponent(colsNbr).addGap(19, 19, 19).addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false).addComponent(inputRowsNbr, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE).addComponent(inputColsNbr, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 42, Short.MAX_VALUE)).addGap(164, 164, 164))).addGap(20, 20, 20)).addGroup(javax.swing.GroupLayout.Alignment.TRAILING, VnesiMatricaPanelaLayout.createSequentialGroup().addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jSeparator3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE).addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE)).addContainerGap()))).addGroup(VnesiMatricaPanelaLayout.createSequentialGroup().addGap(140, 140, 140).addComponent(submitVnesiMatrica).addContainerGap(165, Short.MAX_VALUE)));
        VnesiMatricaPanelaLayout.setVerticalGroup(
                VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(VnesiMatricaPanelaLayout.createSequentialGroup().addContainerGap().addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(imeMatrica).addComponent(inputMatricaName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE).addGap(1, 1, 1).addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(colsNbr).addComponent(inputColsNbr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addGroup(VnesiMatricaPanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(rowsNbr).addComponent(inputRowsNbr, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED).addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(submitVnesiMatrica).addContainerGap(20, Short.MAX_VALUE)));

    }

    public void VnesiMatricaPanelaMouseClicked(java.awt.event.MouseEvent evt) {
        System.out.println(inputColsNbr.getText());

    }

    public JPanel getVnesiMatricaPanela() {
        return VnesiMatricaPanela;
    }

    public void setVnesiMatricaPanela(JPanel VnesiMatricaPanela) {
        this.VnesiMatricaPanela = VnesiMatricaPanela;
    }


    public javax.swing.JPanel VnesiMatricaPanela;
    public JLabel colsNbr;
    public JLabel imeMatrica;
    public JLabel rowsNbr;
    public JLabel resultLabel;
    public JTextField inputColsNbr;
    public JTextField inputMatricaName;
    public JTextField inputRowsNbr;
    public JSeparator jSeparator1;
    public JSeparator jSeparator3;
    public JButton submitVnesiMatrica;
}

